package com.maimao.user.exception;

import com.maimao.core.advice.WebExceptionHandler;
import com.maimao.core.enums.ExceptionEnum;
import org.springframework.security.access.AccessDeniedException;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @author MaoLin Wang
 * @date 2020/12/1 4:36 下午
 */
@RestControllerAdvice
public class MyException extends WebExceptionHandler {
    {
        exceptionBuilder.put(AccessDeniedException.class, ExceptionEnum.FORBIDDEN);
    }
}
